package com.s4.entity;

import java.io.Serializable;

/**
 * @author XIAOLIANG
 * @ClassName ProductDao.java
 * @Description TODO
 * @createTime 2021年02月25日 18:29:00
 */
public class Product implements Serializable {

	private Integer id;
	private String name;
	private double price;
	private Integer account;  //在商品展示页面 表示 库存数量  在购物车中表示购买的数量
	private Integer status = 0;
	private String description;

	public Product() {
	}

	public Product(String name, double price, Integer account, Integer status, String description) {
		this.name = name;
		this.price = price;
		this.account = account;
		this.status = status;
		this.description = description;
	}

	public Product(Integer id, String name, Double price, Integer account, Integer status, String description) {
		this.id = id;
		this.name = name;
		this.price = price;
		this.account = account;
		this.status = status;
		this.description = description;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public double getPrice() {
		return price;
	}

	public void setPrice(double price) {
		this.price = price;
	}

	public int getAccount() {
		return account;
	}

	public void setAccount(int account) {
		this.account = account;
	}

	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	@Override
	public String toString() {
		return "Product{" +
				"id=" + id +
				", name='" + name + '\'' +
				", price=" + price +
				", account=" + account +
				", status=" + status +
				", description='" + description + '\'' +
				'}';
	}

}
